package models.mapper;

import java.util.List;

import models.SystemRole;
import models.SystemRoleExample;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import vos.Node;

public interface SystemRoleMapper {
    int countByExample(SystemRoleExample example);

    int deleteByExample(SystemRoleExample example);

    int deleteByPrimaryKey(String roleid);

    int insert(SystemRole record);

    int insertSelective(SystemRole record);

    List<SystemRole> selectByExample(SystemRoleExample example);

    SystemRole selectByPrimaryKey(String roleid);

    int updateByExampleSelective(@Param("record") SystemRole record, @Param("example") SystemRoleExample example);

    int updateByExample(@Param("record") SystemRole record, @Param("example") SystemRoleExample example);

    int updateByPrimaryKeySelective(SystemRole record);

    int updateByPrimaryKey(SystemRole record);
    /**
     * 获取角色下拉框
     * @return
     */
    @Select("select roleid as id,rolename as text from system_role order by roleid asc")
	List<Node> getRoleComboBox();
}